package com.william.jdbcplus.test.entity;

import com.william.jdbcplus.common.annotation.TableColumn;
import com.william.jdbcplus.common.annotation.TableFk;
import com.william.jdbcplus.common.annotation.TableId;
import com.william.jdbcplus.common.annotation.Table;
import com.william.jdbcplus.common.entity.Entity;
import com.william.jdbcplus.common.enums.IdType;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@Table("db_post")
@ApiModel("职务表")
public class DbPost implements Entity {

    @TableId(type = IdType.GUID)
    private String id;

    @TableColumn(remarks = "机构编码")
    @TableFk(pkEntity = DbOrg.class, pkField = "code")
    private String orgCode;

    @TableColumn(remarks = "职务编码")
    private String code;

    @TableColumn(remarks = "职务名称")
    private String name;

    @TableColumn(remarks = "职级级别")
    private String postRank;


}
